package com.example.qny01.service.impl;

import com.example.qny01.mapper.UserMapper;
import com.example.qny01.service.UserService;
import org.springframework.stereotype.Service;
import qny01.pojo.CommonResult;
import qny01.pojo.User;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService {
    @Resource
    UserMapper userMapper;

    public User login(User user) {
        User user1 = userMapper.login(user);
        return user1;
    }
}
